package com.czz.manage.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName: Period
 * @Author Czz
 * @Date 2020/1/22
 * @Time 17:15
 **/
@Data
@TableName(value = "edu_chapter_period")
@Accessors(chain = true)
public class Period {
    @TableId(value = "period_id", type = IdType.ID_WORKER_STR)
    private String periodId;

    @TableField(value = "course_id")
    private String courseId;

    @TableField(value = "chapter_id")
    private String chapterId;

    @TableField(value = "period_name")
    private String periodName;

    @TableField(value = "is_free")
    private Integer free;

    @TableField(value = "is_doc")
    private Integer doc;

    @TableField(value = "doc_name")
    private String docName;

    @TableField(value = "doc_url")
    private String docUrl;

    @TableField(value = "is_video")
    private Integer video;

    @TableField(value = "video_source_id")
    private String videoId;

    @TableField(value = "video_name")
    private String videoName;

    @TableField(value = "period_status")
    private Integer status;

    @TableField(value = "period_sort")
    private String sort;

    @Version
    @TableField(value = "version")
    private Long version;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
